function dispatchEventStroage() {
	const signSetItem = localStorage.setItem
	localStorage.setItem = function (key, val) {
		// console.log(JSON.parse(val).content)
		let setEvent = new Event('setItemEvent')
		setEvent.key = key
		setEvent.newValue = JSON.parse(val).content
		window.dispatchEvent(setEvent)
		signSetItem.apply(this, arguments)
	}
}

export default dispatchEventStroage
